<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<title>Document</title>
	<script src="lib/vue.js"></script>
</head>
<body>
	<div id="box">
		<span v-bgc>ddd</span>
	</div>
	
	<script>
		Vue.directive("bgc",function(input){
			this.el.style.background = "red"
		});
		new Vue({
			el: "#box",
			data: {
				arr: ["apple", "orange", "banana"],
				json: {
					name: "jack",
					age: 18,
					job: "student"
				},
				msg: "yy"
			}
		});
	</script>
</body>
</html>